/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.yxw.yxnet_cd_center.customer_service.dto;

import com.yxw.yxnet_cd_center.customer_service.entity.YxCsWorkflowEntity;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 客服查询服务流转记录
 * @author hjx
 * @date 2023.10.09
 */
@Data
public class CustomQueryWorkflowDTO implements Serializable
{
    private static final long serialVersionUID = 81696843921947L;
    /**
    *工作流ID
    */
    @ApiModelProperty(value = "工作流ID")
    private Long Id;
    /**
    *工作组ID
    */
    @ApiModelProperty(value = "工作组ID")
    private Long groupId;
    /**
    *工作组名称
    */
    @ApiModelProperty(value = "工作组名称")
    private String groupName;
    /**
    *发起客户ID
    */
    @ApiModelProperty(value = "发起客户ID")
    private Long customId;
    /**
    *发起客户名称
    */
    @ApiModelProperty(value = "发起客户名称")
    private String customName;
    /**
    *服务流转类型:2转接到用户,3转接到群
    */
    @ApiModelProperty(value = "服务流转类型:2转接到用户,3转接到群")
    private Integer workflowType;
    /**
    *服务流转类型名称:2转接到用户,3转接到群
    */
    @ApiModelProperty(value = "服务流转类型名称:2转接到用户,3转接到群")
    private String workflowTypeName;
    /**
    *接收部门ID
    */
    @ApiModelProperty(value = "接收部门ID")
    private Long receiveDeptId;
    /**
    *接收部门名称
    */
    @ApiModelProperty(value = "接收部门名称")
    private String receiveDeptName;
    /**
    *处理人ID
    */
    @ApiModelProperty(value = "处理人ID")
    private Long handelId;
    /**
    *处理人名称
    */
    @ApiModelProperty(value = "处理人名称")
    private String handelName;
    /**
    *问题记录ID
    */
    @ApiModelProperty(value = "问题记录ID")
    private Long problemId;
    /**
    *处理记录ID
    */
    @ApiModelProperty(value = "处理记录ID")
    private Long handelProId;
    /**
    *创建时间
    */
    @ApiModelProperty(value = "创建时间")
    private java.sql.Date createTime;
    /**
    *解决时间
    */
    @ApiModelProperty(value = "解决时间")
    private java.sql.Date handelTime;
    /**
    *问题描述
    */
    @ApiModelProperty(value = "问题描述")
    private String description;
    /**
    *是否已完成:0未完成,1已完成
    */
    @ApiModelProperty(value = "是否已完成:0未完成,1已完成")
    private Integer endFlag;
    /**
    *客户申请服务Id
    */
    //@NotBlank(message = "客户申请服务Id不可为空")
    @ApiModelProperty(value = "客户申请服务Id")
    private String sessionId;
    /**
    *客户Id
    */
    @ApiModelProperty(value = "客户Id")
    private String clientId;
    /**
    *客户名称
    */
    @ApiModelProperty(value = "客户名称")
    private String clientName;
    /**
    *将DTO转换为ENTITY
    */
    public YxCsWorkflowEntity ConverToEntity()
    {
        YxCsWorkflowEntity oYxCsWorkflowEntity = new YxCsWorkflowEntity ();
        oYxCsWorkflowEntity.setId(Id) ;
        oYxCsWorkflowEntity.setGroupId(groupId) ;
        oYxCsWorkflowEntity.setGroupName(groupName) ;
        oYxCsWorkflowEntity.setCustomId(customId) ;
        oYxCsWorkflowEntity.setCustomName(customName) ;
        oYxCsWorkflowEntity.setWorkflowType(workflowType) ;
        //oYxCsWorkflowEntity.setWorkflowTypeName(workflowTypeName) ;
        oYxCsWorkflowEntity.setReceiveDeptId(receiveDeptId) ;
        oYxCsWorkflowEntity.setReceiveDeptName(receiveDeptName) ;
        oYxCsWorkflowEntity.setHandelId(handelId) ;
        oYxCsWorkflowEntity.setHandelName(handelName) ;
        oYxCsWorkflowEntity.setProblemId(problemId) ;
        oYxCsWorkflowEntity.setHandelProId(handelProId) ;
        oYxCsWorkflowEntity.setCreateTime(createTime) ;
        oYxCsWorkflowEntity.setHandelTime(handelTime) ;
        oYxCsWorkflowEntity.setDescription(description) ;
        oYxCsWorkflowEntity.setEndFlag(endFlag) ;
        oYxCsWorkflowEntity.setSessionId(sessionId) ;
        oYxCsWorkflowEntity.setClientId(clientId) ;
        oYxCsWorkflowEntity.setClientName(clientName) ;
        return oYxCsWorkflowEntity;
    }
}